package com.ys.web.yinsheng.util;

import com.alibaba.fastjson.JSON;
import com.ys.utils.base.j2se.StringHandler;
import com.ys.utils.spring.properties.Config;

import java.util.Map;

public class YsFastPay {

    private static Map<String,Object> map = null;

    public static int getBankType(String bankName){
        if(StringHandler.isEmpty(map)){
            map = JSON.parseObject(Config.pp.get("ys.bank.type")).getInnerMap();
        }

        return StringHandler.getInt(map.get(bankName));
    }

}
